	<div id="user-signup-login-panel<?php if($session->check("Auth.User.id"))echo '-on'?>">
		<?php if($session->check("Auth.User.id")){?>
			<div id="user-panel-content">
			<?php echo $session->read("Auth.User.email")?>
			</div>
		<?php }?>
		<div id="user-panel-content">
			<?php 
			if($session->check("Auth.User.id")){?>
				<?php //echo $session->read("Auth.User.email")?>
				<div class="panel-left">  
				<?php 
				echo $html->link(__('wyloguj się',true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('escape'=>false,'title'=> $session->read("Auth.User.email")));	
				?>
										
				</div>
				<div class="panel-right">
				
				<?php
				
				switch($session->read("Auth.User.group")){
					case 'admin':
						echo $html->link(__('twoje dane',true),array('plugin'=>false,'controller'=>'users','action'=>'admin'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;
					case 'manag':
						echo $html->link(__('twoje dane',true),array('plugin'=>false,'controller'=>'users','action'=>'edit'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;
					case 'users':
						echo $html->link(__('twoje dane',true),array('plugin'=>false,'controller'=>'users','action'=>'edit'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;		
					case 'emplo':
						echo $html->link(__('twoje dane',true),array('plugin'=>false,'controller'=>'users','action'=>'edit'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;			}
				
				?>
				
				</div>
				
				<?php 
			}else{
				?>
				
				<div class="panel-left">
				
				<?php 
				$user = (isset($this->data['User']['id'])) ? $this->data['User']['id'] : null;
				//echo $html->link(__('register',true),array('plugin'=>false,'controller'=>'users','action'=>'register'),array('escape'=>false));
				
				?>
				
				</div>
				<div class="panel-right">
				
				<?php 
				echo $html->link(__('login',true),array('plugin'=>false,'controller'=>'users','action'=>'login'),array('escape'=>false));
				
				?>
				</div>
				<?php 
			}
			?>
						
		</div>
	</div>